package com.powernode.pojo;

import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author X
 * @date 2021/10/28
 */
@SuppressWarnings({"all"})
@Data
@Table(name = "goods") // 对应的表
public class Goods {
    @Id
    @KeySql(useGeneratedKeys = true) // 主键
    @Column(name = "g_id")
    private String g_id;

    @Column(name = "g_name")
    private String g_name;

    @Column(name = "g_price")
    private Double g_price;
}